package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品单位管理对象 commodity_unit_management
 *
 * @author ruoyi
 * @date 2025-05-28
 */
public class CommodityUnitManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;

    /** 状态，默认为正常 */
    @Excel(name = "状态，默认为正常")
    private String status;

    /** 单位类型（例如：重量、体积、长度等） */
    @Excel(name = "单位类型", readConverterExp = "例=如：重量、体积、长度等")
    private String unitType;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    /** 换算信息（例如：1千克=1000克） */
    @Excel(name = "换算信息", readConverterExp = "例=如：1千克=1000克")
    private String conversionInfo;

    /** 排序字段（如果与显示顺序不同，可以用于其他排序逻辑） */
    @Excel(name = "排序字段", readConverterExp = "如=果与显示顺序不同，可以用于其他排序逻辑")
    private Long sortOrder;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public String getUnitName()
    {
        return unitName;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setUnitType(String unitType)
    {
        this.unitType = unitType;
    }

    public String getUnitType()
    {
        return unitType;
    }

    public void setDisplayOrder(Long displayOrder)
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder()
    {
        return displayOrder;
    }

    public void setConversionInfo(String conversionInfo)
    {
        this.conversionInfo = conversionInfo;
    }

    public String getConversionInfo()
    {
        return conversionInfo;
    }

    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("unitName", getUnitName())
                .append("status", getStatus())
                .append("unitType", getUnitType())
                .append("displayOrder", getDisplayOrder())
                .append("conversionInfo", getConversionInfo())
                .append("sortOrder", getSortOrder())
                .append("phone", getPhone())
                .toString();
    }
}
